package cn.wolfcode.enums;

import lombok.Getter;

@Getter
public enum CustomerReportEnums {

    BUSINESS("门店", "business.`name`"),
    YEAR("年", "DATE_FORMAT(pay_time,'%Y')"),
    MONTH("月", "DATE_FORMAT(pay_time,'%Y-%m')"),
    DAY("天", "DATE_FORMAT(pay_time,'%Y-%m-%d')");

    private String name;
    private String sql;

    CustomerReportEnums(String name, String sql) {
        this.name = name;
        this.sql = sql;
    }

}
